﻿package mortal.game.scene3D.model
{
    import baseEngine.system.*;
    import frEngine.manager.*;
    import frEngine.render.layer.*;
    import mortal.game.*;
    import mortal.game.resource.*;
    import mortal.game.scene3D.model.player.*;
    import mortal.game.scene3D.model.pools.*;

    public class SceneGlobalPlayer extends Object
    {
        private static var _selectPlayerMask:EffectPlayer;

        public function SceneGlobalPlayer()
        {
            return;
        }// end function

        public static function initGlobalPlayers() : void
        {
            _selectPlayerMask = EffectPlayerPool.instance.getEffectPlayer(GlobalStaticResUrl.PlayerSelectObjName, null, Global3D.scene.renderLayerList, false, true);
            _selectPlayerMask.layer = Layer3DManager.gridLayer;
            _selectPlayerMask.loadPriority = 0;
            Resource3dManager.instance.addStaticResource(GlobalStaticResUrl.PlayerSelectObjName);
            return;
        }// end function

        public static function getPointMask() : EffectPlayer
        {
            var _loc_1:* = EffectPlayerPool.instance.getEffectPlayer(GlobalStaticResUrl.SceneClickObjName, Game.scene.playerLayer, null, false, true);
            _loc_1.loadPriority = 0;
            return _loc_1;
        }// end function

        public static function get selectPlayerMask() : EffectPlayer
        {
            return _selectPlayerMask;
        }// end function

    }
}
